<%@ page language="java" pageEncoding="UTF-8"
	contentType="text/html; charset=utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
		<meta http-equiv="description" content="This is my page" />
		<title>注册-幸福兄弟-幸福兄弟拼购网</title>
	<meta name="description" content="幸福兄弟盐城拼购第一网www.9898sj.com是幸福兄弟营销策划有限公司旗下品牌项目。幸福兄弟盐城拼购第一网是专门针对建材、家具、电器进行同城拼购的一个网站。将全城千万消费者聚拢在一起，用量来获得最低的购买价格。网站聚集了全城1000个知名优质品牌，消费者足不出户就能完成对盐城建材、家具、电器市场进行最深刻的了解，通过拼购网购买是免费的，消费者不需要花一分钱就能实现最省钱、省心、舒心的购买。幸福兄弟盐城拼购第一网将帮助1000个优质品牌企业最大程度的宣传全城，帮助品牌企业好的口碑得到良好的传播，从而实现最好的销售。希望幸福兄弟盐城拼购第一网能为您的幸福生活、您的成功带来帮助！幸福生活，从拼购开始。公司地址，盐城市南城河路9号（迎宾桥北桥头东侧）；联系电话：0515-88175689  88175528"/>
	<meta name="keywords" content="幸福兄弟，幸福兄弟盐城拼购第一网，幸福兄弟拼购，幸福兄弟拼购网，盐城拼购，盐城拼购，盐城建材拼购，盐城家具拼购，盐城电器拼购，建材拼购，家具拼购，电器拼购"/>

		<script src="<%=basePath%>resource/js/jquery-1.4.2.js"></script>
		<script src="<%=basePath%>resource/js/jquery.tip.js"></script>
		<script>
  var base="<%=basePath%>";
</script>
		<script src="<%=basePath%>/index/register.js"></script>
		<style type="text/css">
body {
	font-family: "微软雅黑";
	font-size: 12px;
	padding: 0px;
	margin: 0px;
}

a {
	text-decoration: none;
	color: #069;
}

.quandianping {
	padding-bottom: 8px;
	padding-top: 5px;
	font-size: 13px;
	font-family: "微软雅黑";
}

.tijiao {
	background-image: url(../resource/img/index/tijiao.jpg);
	background-repeat: no-repeat;
	background-position: right center;
	float: left;
	height: 28px;
	width: 75px;
	font-size: 14px;
	line-height: 28px;
	font-weight: bold;
	color: #FFF;
	text-align: center;
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 360px;
}

.tijiao a {
	color: #FFF;
	text-decoration: none;
}

.tijiao a:hover {
	color: #036;
}

/*Example for a Menu Style*/
.menu {
	height: 33px;
	width: 900px;
	margin-top: 8px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #9EBEDE;
}

.menu ul {
	padding: 0px;
	list-style: none;
	text-align: center;
	margin: 0px;
}

.menu li {
	display: inline;
	line-height: 33px;
	border-right-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-left-style: solid;
	border-right-color: #d7d7d7;
	border-left-color: #d7d7d7;
}

.menu li a {
	color: #333;
	text-decoration: none;
	padding-top: 5px;
	padding-bottom: 6px;
	font-size: 14px;
	width: 102px;
	padding-right: 22px;
	padding-left: 22px;
	font-weight: bold;
}

.menu li a.tabactive {
	color: #069;
	font-weight: bold;
	position: relative;
	background-image: url(../resource/img/index/bg_regist.jpg);
	background-repeat: no-repeat;
	background-position: center top;
}

#tabcontent1,#tabcontent2,#tabcontent3,#tabcontent4,#anothercontent1,#anothercontent2,#anothercontent3,#anothercontent4,#anothercontent5,#anothercontent6
	{
	width: 900px;
	text-align: center;
	font-size: 12px;
	margin-bottom: 5px;
	padding-top: 25px;
	padding-right: 0px;
	padding-bottom: 6px;
	padding-left: 0px;
}

#center {
	height: auto;
	width: 900px;
	margin-top: 0px;
	margin-right: auto;
	margin-bottom: 0px;
	margin-left: auto;
}

h2 {
	margin: 0px;
	font-family: "微软雅黑";
	font-size: 15px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 8px;
	color: #036;
}

.errorMes{
	font-size: 13px;
	display:-moz-inline-box;display:inline-block;
	height: 25px;line-height: 25px;
	color: red;
	font-weight: bold;
}

.successMes{
	font-size: 13px;
	display:-moz-inline-box;display:inline-block;
	height: 25px;line-height: 25px;
	color: green;
	font-weight: bold;
}
</style>


		<script type="text/javascript">

</script>
	</head>


	<body >
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr align="center" valign="middle">
					<td>
						<table width="1000" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td>
									<table width="1000" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td
												style="background: url(../resource/img/index/tit_regist1.jpg) no-repeat"
												width="10px" height="33">
												&nbsp;
											</td>
											<td
												style="background: url(../resource/img/index/tit_regist2.jpg) repeat-x"
												width="980px" height="33">
												<table width="980" border="0" cellspacing="0"
													cellpadding="0">
													<tr>
														<td height="33px" align="left">
															<h2>
																注册新用户
															</h2>
														</td>
														<td align="right">
															<strong></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
															我已经注册，现在就&nbsp;
															<a href="../login.html">登录</a>
														</td>
													</tr>
												</table>



											</td>
											<td
												style="background: url(../resource/img/index/tit_regist3.jpg) no-repeat"
												width="10px" height="33">
												&nbsp;
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td style="border: #c8c8c8 solid 1px">
									<div id="center">

										<!--Start of the Tabmenu 1 -->
										<div class="menu">
											<ul>
												<li>
													<a href="#" onmouseover="easytabs('1', '2');"
														onfocus="easytabs('1', '2');" onclick="return false;"
														title="" id="tablink2">业主用户 </a>
												</li>
												<li>
													<a href="#" onmouseover="easytabs('1', '1');"
														onfocus="easytabs('1', '1');" onclick="return false;"
														title="" id="tablink1">商家用户 </a>
												</li>

											</ul>
										</div>
										<!--End of the Tabmenu 1 -->

										<div><span class="errorMes" id="errorMes"></span>
																	<span class="successMes" id="successMes"></span>
										</div>
										<!--Start Tabcontent 1 -->
										<div id="tabcontent2">
											<table width="900" border="0" cellspacing="0" cellpadding="0">
												<tr>
													<td width="80">
													<form action="saveUser.shtml" method="post" onsubmit="">
														<table width="800" border="0" cellspacing="0"
															cellpadding="0">
															<tr>
																<td width="360" align="right">
																	<div class="quandianping">
																		<label for="textfield">
																			用户名：
																		</label>
																	</div>
																</td>
																<td align="left">
																	<div class="quandianping">
																		<input type="text" maxlength="19" name="user.username"
																			onchange="checkloginuserName(this.value)" id="yeuser" />
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td width="360" align="right">
																	<div class="quandianping">
																		<label for="textfield">
																			密码：
																		</label>
																	</div>
																</td>
																<td align="left">
																	<div class="quandianping">
																		<input type="password" name="user.password" maxlength="19"
																			id="yepassword" onchange="checkPassword(this.value)" />
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td width="360" align="right">
																	<div class="quandianping">
																		<label for="textfield">
																			真实姓名：
																		</label>
																	</div>
																</td>
																<td align="left">
																	<div class="quandianping">
																		<input type="text" name="member.realname" maxlength="40"
																			id="realname" />
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td align="right">
																	<div class="quandianping">
																		<label for="select">
																			性 别：
																		</label>
																	</div>
																</td>
																<td align="left">

																	<div class="quandianping">
																		<select name="member.sex" id="sex">
																			<option value="1">
																				男
																			</option>
																			<option value="2">
																				女
																			</option>
																		</select>
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td align="right">
																	<div class="quandianping">
																		<label for="textfield2">
																			手 机：
																		</label>
																	</div>
																</td>
																<td align="left">
																	<div class="quandianping">
																		<input type="text" maxlength="20" name="member.phone"
																			id="yephone" />
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td align="right">
																	<div class="quandianping">
																		<label for="textfield3">
																			固定电话：
																		</label>
																	</div>
																</td>
																<td align="left">
																	<div class="quandianping">
																		<input type="text" maxlength="20" name="member.tel"
																			id="tel" />
																	</div>
																</td>
															</tr>
															<tr>
																<td align="right">
																	<div class="quandianping">
																		<label for="textfield4">
																			住 址：
																		</label>
																	</div>
																</td>
																<td align="left">
																	<div class="quandianping">
																		<input type="text" maxlength="100" name="member.address"
																			id="yeaddress" style="width: 300px;"/>
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
																<td align="right">
																	<div class="quandianping">
																	</div>
																</td>
																<td align="left">
															    	<div class="quandianping">
																	<input type="checkbox" id="yezhuagree" /> 同意幸福兄弟服务使用协议 <a href="../statement/statement_toStatement.shtml?flag=8" target="_blank">用户注册协议</a>
																	</div>
																</td>
															</tr>
														</table>
														<table width="800" border="0" cellspacing="0"
															cellpadding="0">
															<tr>
																<td
																	style="padding-top: 10px; padding-left: 10px; padding-right: 10px">
																	<div class="quandianping1">

																	</div>

																</td>
															</tr>
															<tr>
																<td height="30px">
																	<div class="tijiao">
																		<a href="javascript:checkUser()" >提交</a>
																	</div>
																</td>
															</tr>
															<tr>
																<td height="10px">
																	&nbsp;
																</td>
															</tr>
														</table>
														</form>

													</td>
												</tr>
											</table>
										</div>
										<!--End Tabcontent 1-->

										<!--Start Tabcontent 2-->
										<div id="tabcontent1">
											<form action="saveBrand.shtml" method="post" onsubmit="return checkSub();">
											<table width="900" border="0" cellspacing="0" cellpadding="0">
												<tr>
													<td width="80">
													
														<table width="800" border="0" cellspacing="0"
															cellpadding="0">
															<tr>
																<td align="right" width="360px">
																	<div class="quandianping">
																		<label for="select2">
																			所属行业：
																		</label>
																	</div>
																</td>
																<td align="left">

																	<div class="quandianping">
																		<select name="bigCategoryId"
																			onchange="bigCategoryChange()" id="bigCategory">
																			<option value="-1">
																				请选择
																			</option>
																			<s:iterator value="rows">
																				<option value="<s:property value="id"/>">
																					<s:property value="name" />
																				</option>
																			</s:iterator>
																		</select>
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td align="right">
																	<div class="quandianping">
																		<label for="select3">
																			产品分类：
																		</label>
																	</div>
																</td>
																<td align="left">

																	<div class="quandianping">
																		<select id="categoryId" name="categoryId" onchange="smallCategoryChange()">
																			<option value="-1">
																				--请选择--
																			</option>
																		</select>
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td align="right">
																	<div class="quandianping">
																		<label for="select3">
																			产品类型：
																		</label>
																	</div>
																</td>
																<td align="left">

																	<div class="quandianping" id="goodsType">
																		<select name="typeId">
																			<option value="-1">
																				请选择
																			</option>
																		</select>
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td align="right">
																	<div class="quandianping">
																		<label for="select3">
																			所在商城：
																		</label>
																	</div>
																</td>
																<td align="left">

																	<div class="quandianping" id="marktype">
																		<select id="catogoId">
																			<option value="-1">
																				--请选择--
																			</option>
																		</select>
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td align="right">
																	<div class="quandianping">
																		<label for="select4">
																			品牌名称：
																		</label>
																	</div>
																</td>
																<td align="left">

																	<div class="quandianping">
																		<input type="text" name="tgBrand.name" id="type"></input>
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td width="360" align="right">
																	<div class="quandianping">
																		<label for="textfield">
																			用户名：
																		</label>
																	</div>
																</td>
																<td align="left">
																	<div class="quandianping">
																		<input type="text" name="user.username" maxlength="19"
																		onchange="checkloginuserName(this.value)"	id="suser" />
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td width="360" align="right">
																	<div class="quandianping">
																		<label for="textfield">
																			密码：
																		</label>
																	</div>
																</td>
																<td align="left">
																	<div class="quandianping">
																		<input type="password" maxlength="19" name="user.password"
																		onchange="checkPassword(this.value)" 	id="spass" />
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td align="right">
																	<div class="quandianping">
																		<label for="textfield6">
																			公司名称：
																		</label>
																	</div>
																</td>
																<td align="left">
																	<div class="quandianping">
																		<input type="text" maxlength="50" name="tgBrand.companyName"
																			id="scomanyName" />
																	</div>
																</td>
															</tr>
															<tr>
																<td align="right">
																	<div class="quandianping">
																		<label for="textfield7">
																			店铺地址：
																		</label>
																	</div>
																</td>
																<td align="left">
																	<div class="quandianping">
																		<input type="text" maxlength="100" name="tgBrand.shopAddress"
																			id="saddress" />
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td align="right">
																	<div class="quandianping">
																		<label for="textfield8">
																			联系电话：
																		</label>
																	</div>
																</td>
																<td align="left">
																	<div class="quandianping">
																		<input type="text" maxlength="16" name="tgBrand.phone"
																			id="stel" />
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td align="right">
																	<div class="quandianping">
																		<label for="textfield9">
																			公司负责人：
																		</label>
																	</div>
																</td>
																<td align="left">
																	<div class="quandianping">
																		<input type="text" maxlength="24" name="tgBrand.companyOPerer"
																			id="soper" />
																		<em style="color: #F00">*</em>
																	</div>
																</td>
															</tr>
															<tr>
																<td align="right">
																	<div class="quandianping">
																	</div>
																</td>
																<td align="left">
															    	<div class="quandianping">
															    	 
																	<input type="checkbox" id="shangjiaagree" /> 同意幸福兄弟服务使用协议 <a href="../statement/statement_toStatement.shtml?flag=7" target="_blank">商家注册协议</a>
																	</div>
																</td>
															</tr>
														</table>
														<table width="800" border="0" cellspacing="0"
															cellpadding="0">
															<tr>
																<td
																	style="padding-top: 10px; padding-left: 10px; padding-right: 10px">
																	<div class="quandianping1">
																	</div>
																</td>
															</tr>
															<tr>
																<td height="30px">
																	<div class="tijiao">
																		<a href="javascript:checkBrand()" >提交</a>
																	</div>
																</td>
															</tr>
															<tr>
																<td height="10px">
																	&nbsp;
																</td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
											</form>
										</div>
										<br />
									</div>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
	</body>
	<script>
		$(function(){
			$("#yeuser").tip({height:'25px',width:'420px','font-size':'13px','line-height':'25px','padding-left':'5px'},"<font style='color:black'>6-18个字符，可使用字母、数字、下划线、中文，一个汉字为2个字符</font>","2");
			$("#suser").tip({height:'25px',width:'420px','font-size':'13px','line-height':'25px','padding-left':'5px'},"<font style='color:black'>6-18个字符，可使用字母、数字、下划线、中文，一个汉字为2个字符</font>","2");
			$("#yepassword").tip({height:'25px',width:'220px','font-size':'13px','line-height':'25px','padding-left':'5px'},"<font style='color:black'>6-18个字符，不允许使用汉字</font>","2")
			$("#spass").tip({height:'25px',width:'220px','font-size':'13px','line-height':'25px','padding-left':'5px'},"<font style='color:black'>6-18个字符，不允许使用汉字</font>","2")
			//$("#realname").tip({height:'25px',width:'90px','font-size':'13px','line-height':'25px','padding-left':'2px'},"<font style='color:black'>只能使用中文</font>","2")
		})
		
		
		/*
EASY TABS 1.2 Produced and Copyright by Koller Juergen
www.kollermedia.at | www.austria-media.at
Need Help? http:/www.kollermedia.at/archive/2007/07/10/easy-tabs-12-now-with-autochange
You can use this Script for private and commercial Projects, but just leave the two credit lines, thank you.
*/

//EASY TABS 1.2 - MENU SETTINGS
//Set the id names of your tablinks (without a number at the end)
var tablink_idname = new Array("tablink","anotherlink")
//Set the id names of your tabcontentareas (without a number at the end)
var tabcontent_idname = new Array("tabcontent","anothercontent") 
//Set the number of your tabs in each menu
var tabcount = new Array("2","6")
//Set the Tabs wich should load at start (In this Example:Menu 1 -> Tab 2 visible on load, Menu 2 -> Tab 5 visible on load)
var loadtabs = new Array("2","5")  
//Set the Number of the Menu which should autochange (if you dont't want to have a change menu set it to 0)
var autochangemenu = 2;
//the speed in seconds when the tabs should change
var changespeed = 3;
//should the autochange stop if the user hover over a tab from the autochangemenu? 0=no 1=yes
var stoponhover = 0;
//END MENU SETTINGS

/*Swich EasyTabs Functions - no need to edit something here*/
function easytabs(menunr, active) {
   if (menunr == autochangemenu){
       currenttab=active;
   }
   if ((menunr == autochangemenu)&&(stoponhover==1)) {
      stop_autochange()
   } else if   ((menunr == autochangemenu)&&(stoponhover==0))  {
      counter=0;
   } 
   menunr = menunr-1;
   for (i=1; i <= tabcount[menunr]; i++){
     if(document.getElementById(tablink_idname[menunr]+i) != null){
      document.getElementById(tablink_idname[menunr]+i).className='tab'+i;
      document.getElementById(tabcontent_idname[menunr]+i).style.display = 'none';
      }
   }
    if(document.getElementById(tablink_idname[menunr]+active) != null){
    document.getElementById(tablink_idname[menunr]+active).className='tab'+active+' tabactive';
    document.getElementById(tabcontent_idname[menunr]+active).style.display = 'block';
    }
   }
    var timer;
    counter=0; 
    var totaltabs=tabcount[autochangemenu-1];
    var currenttab=loadtabs[autochangemenu-1];
    function start_autochange(){
       counter=counter+1;
       timer=setTimeout("start_autochange()",1000);
       if (counter == changespeed+1) {
          currenttab++;
          if (currenttab>totaltabs) {
             currenttab=1
          }
           easytabs(autochangemenu,currenttab);
           restart_autochange();
           }
     }
     
      function restart_autochange(){
     	 clearTimeout(timer);counter=0;start_autochange();
      }
      
      function stop_autochange(){
      	clearTimeout(timer);counter=0;
      }

window.onload=function(){

var menucount=loadtabs.length; var a = 0; var b = 1; do {easytabs(b, loadtabs[a]);  a++; b++;}while (b<=menucount);
if (autochangemenu!=0){start_autochange();}
}



	</script>
</html>